package com.hp.bon.sgw.wh.bean;

/**
 * 
 * @author yudan
 *
 */
public class NetListQueryPara {

	private String querytype = "";
	private String queryfrom = "";
	private String acctId = "";
	private String servid = "";
	private String selectType = "";
	private String beginDate = "";
	private String endDate = "";
	private String getFlag = "";
	private String areaCode;
	private String queryBatchStart = "";
	private String queryBatch = "";
	public String getQuerytype() {
		return querytype;
	}
	public void setQuerytype(String querytype) {
		this.querytype = querytype;
	}
	public String getQueryfrom() {
		return queryfrom;
	}
	public void setQueryfrom(String queryfrom) {
		this.queryfrom = queryfrom;
	}
	public String getAcctId() {
		return acctId;
	}
	public void setAcctId(String acctId) {
		this.acctId = acctId;
	}
	public String getServid() {
		return servid;
	}
	public void setServid(String servid) {
		this.servid = servid;
	}
	public String getSelectType() {
		return selectType;
	}
	public void setSelectType(String selectType) {
		this.selectType = selectType;
	}
	public String getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getGetFlag() {
		return getFlag;
	}
	public void setGetFlag(String getFlag) {
		this.getFlag = getFlag;
	}
	public String getAreaCode() {
		return areaCode;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	public String getQueryBatchStart() {
		return queryBatchStart;
	}
	public void setQueryBatchStart(String queryBatchStart) {
		this.queryBatchStart = queryBatchStart;
	}
	public String getQueryBatch() {
		return queryBatch;
	}
	public void setQueryBatch(String queryBatch) {
		this.queryBatch = queryBatch;
	}
	
	/**
	 *   <query type='1' from='209'>
		 <param name='acctId'></param>
		 <param name='servid'>19052929130</param>
		 <param name='selectType'>1</param>
		 <param name='beginDate'>20140412000000</param>
		 <param name='endDate'>20140431235959</param>
		 <param name='getFlag'>0</param>
		 <param name='areaCode'>1001</param>
		 <start name='queryBatchStart'></start>
		 <start name='queryBatch'></start>
	 * @return
	 */
	public String convertPara(){
		StringBuffer para = new StringBuffer();
		para.append(" <![CDATA[  ");
		para.append("<query type='" + this.querytype + "' from='" + this.queryfrom + "'>");
		para.append("<param name='acctId'>" + this.acctId + "</param>");
		para.append("<param name='servid'>" + this.servid + "</param>");
		para.append("<param name='selectType'>" + this.selectType + "</param>");
		para.append("<param name='beginDate'>" + this.beginDate + "</param>");
		para.append("<param name='endDate'>" + this.endDate + "</param>");
		para.append("<param name='getFlag'>" + this.getFlag + "</param>");
		para.append("<param name='areaCode'>" + this.areaCode + "</param>");
		para.append("<start name='queryBatchStart'>" + this.queryBatchStart + "</start>");
		para.append("<start name='queryBatch'>" + this.queryBatch + "</start>");
		para.append("</query>");
		para.append("]]>");
		return para.toString();
	}
}
